<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Demo21</title>
    <script src="https://unpkg.com/vue@next"></script>
  </head>
  <body>
    <div id="app"></div>
  </body>
  <script>
    const app = Vue.createApp({
      data() {
        return {};
      },
      methods: {
        handleKeyDown() {
          console.log("keydow....");
        },
      },
      template: `
        <div>
            <input @click.right="handleKeyDown()"/>
        </div>
        `,
    });
    const vm = app.mount("#app");
  </script>
</html>
